# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-jaraco.text
pkgver=3.12.0
pkgrel=0
pkgdesc="Module for text manipulation"
url="https://github.com/jaraco/jaraco.text"
arch="noarch"
license="MIT"
depends="
	py3-autocommand
	py3-inflect
	py3-jaraco.context
	py3-jaraco.functools
	py3-more-itertools
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-setuptools_scm
	py3-wheel
	"
checkdepends="py3-autocommand py3-inflect py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/j/jaraco.text/jaraco.text-$pkgver.tar.gz"
builddir="$srcdir/jaraco.text-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest --ignore testenv
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
75068006c96dae3b8d21228f2ae21820939c68b1fb7e5db35bd0c1126a20399eb4d99c6bea15e88076599956c4b41104558cd32d860d8f4fd4e96aeeb22711c9  jaraco.text-3.12.0.tar.gz
"
